var zhajinhua = require('./zhajinhua.js');

var testGetResult = function () {
    // var hands = ["AH AS AS", "KS KS KH"];//豹子 豹子
    // var hands = ["2H 2S 2S", "AS KS QS"];//豹子 金顺
    // var hands = ["AS KS QS", "JS KS QS"];//金顺 金顺
    // var hands = ["AS KS QS", "AS 2S 3S"];//金顺 金顺
    // var hands = ["AS 2S 3S", "AS KS AS"];//金顺 金花
    // var hands = ["AS KS AS", "2S 3S 9S"];//金花 金花
    // var hands = ["2S 3S 5S", "KS AS QH"];//金花 顺子
    // var hands = ["KS AS QH", "2S 3S 1H"];//顺子 顺子
    // var hands = ["AS 2S 3H", "AS AS KH"];//顺子 对子
    // var hands = ["AS 2S 2H", "AS AS 2H"];//对子 对子
    // var hands = ["3S 2S 2H", "AS KS JH"];//对子 高牌
    var hands = ["AH AS AS", "2S 3S 5H"];//对子 高牌

    var result = zhajinhua.getResult(hands);

    console.dir(result);
};

// testGetResult();

var testSortHand = function () {
    var hand = "KS AS 2H";
    var result = zhajinhua.sortHand(hand);
    console.dir(result);
}
testSortHand();
